package com.controller;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;

public class Tsasa {
		public static void main(String[] args) {
			demo1();
		}
		private static void demo1() {
			Collection c = new ArrayList();
			c.add("a");
			c.add("b");
			c.add("c");
			c.add("d");
			Iterator it =c.iterator();
			while(it.hasNext()) {
				System.out.println(it.next());
			}
		}
}
